export function loading( status ,msg){
  if(msg==null){
    msg='数据加载中......'
  }
  if( status ){
    $( '.row' ).css( { 'display': 'none' } );
    $( '.wrapper' ).append( '<div class="loading"><div class="loadLing2"><div class="el-loading-spinner"><svg viewBox="25 25 50 50" class="circular"><circle cx="50" cy="50" r="20" fill="none" class="path"></circle></svg> <p class="el-loading-text">'+msg+'</p></div></div></div>' );
  }else{
    $( 'div.loading' ).remove();
    $( '.row' ).fadeIn( 'slow', function(){
      $( this ).css( { 'display': 'block' } );
    } );
  }
}
export function loading2( status,msg){
  if( status ){
    var str = '<div class="loadLing2"><div class="el-loading-spinner"><svg viewBox="25 25 50 50" class="circular"><circle cx="50" cy="50" r="20" fill="none" class="path"></circle></svg> <p class="el-loading-text">'+msg+'</p></div></div>'
    $( 'body' ).append( str );
  }else{
    $( '.loadLing2' ).remove();
  }
}